package com.itheima.test31;

public class UiTeacher extends staffs implements painting {
    @Override
    public void painting() {
        String s = "";
        if (super.isGender()){
            s = "男";
        }else {
            s = "女";
        }
        System.out.println(super.getName() + "是" + super.getAge() + "岁的" +
                s + "性Ui讲师一枚");
    }

    public UiTeacher(String name, boolean gender, int age) {
        super(name, gender, age);
    }

    public UiTeacher() {
    }

    @Override
    public void work() {
        System.out.println(super.getName() + "是Ui讲师一枚" + "擅长绘画");
    }
}
